package cn.tedu.test.luban.demo.config;

import cn.tedu.test.luban.demo.bean.Bean01;
import cn.tedu.test.luban.demo.bean.Bean03;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyConfig02 {

    public MyConfig02() {
        System.out.println("MyConfig02被容器加载了");
    }

    @Bean
    public Bean03 bean03() {
        return new Bean03();
    }
}
